home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr37
/
fwklz202.zip
/
LOOKUPZ.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-03-31
|
3KB
|
100 lines
@echo off
if "%1" == "" goto zz
if not "%1" == "/*" goto aa
if not "%2" == "..2.02" goto zz
if exist QUERYFLA.GUP del QUERYFLA.GUP > nul
if exist QUERYFLA.GUP attrib -r QUERYFLA.GUP > nul
if exist QUERYFLA.GUP del QUERYFLA.GUP > nul
goto us1
:zz
cls
goto us0
:usage
echo.
pause
echo.
:us0
echo Part of FWKCS(TM) Contents_Signature System, Version 2.02.
echo (C)Copyright Frederick W. Kantor 1989, 1995. All rights reserved.
echo Your use of this program is at solely your own risk.
echo.
:us1
echo LOOKUPZ.BAT to find matching material on remote bulletin board systems;
echo or partial test if a zipfile might be appropriate to upload.
echo.
echo To use this, you must have Phil Katz's PKZIP(R) 2.04g in your current
echo directory or available on your path.
echo The BBS you are calling must be using FWKCS 2.00 or later.
echo.
echo Usage: LOOKUPZ FILES.ZIP ASKFILE.ZIP "<enter>" (for detailed reply)
echo LOOKUPZ FILES.ZIP ASKFILE.ZIP ! "<enter>" (for short reply)
echo.
echo where FILES.ZIP contains the files you want to look up (up to 512).
echo.
echo ASKFILE.ZIP by whatever name you give it, is the small zipfile
echo you send to the BBS as your inquiry.
echo.
echo ! is literal, and tells FWKCS to send a short reply without a
echo list of matching file(s).
echo.
echo See LOOKUP.DOC.
goto end
:aa
if "%2" == "" goto help1
if "%1" == "%2" goto help2
if not exist %1 goto help3
if exist %2 goto help4
if exist fwkcsloo.kup del fwkcsloo.kup > nul
if exist fwkcsloo.kup attrib -r fwkcsloo.kup > nul
if exist fwkcsloo.kup del fwkcsloo.kup > nul
pkzip -v %1 > fwkcsloo.kup
if not .%3 == .! goto wcs
if exist $_$!$_$_.!#! del $_$!$_$_.!#! > nul
if exist $_$!$_$_.!#! attrib -r $_$!$_$_.!#! > nul
echo reply sans cs > $_$!$_$_.!#!
type fwkcsloo.kup >> $_$!$_$_.!#!
del fwkcsloo.kup > nul
ren $_$!$_$_.!#! fwkcsloo.kup > nul
:wcs
pkzip %2 fwkcsloo.kup -om > nul
if exist fwkcsloo.kup goto help5
echo.
echo Now, if you upload the zipfile "%2" to any BBS which runs
echo FWKCS(TM) Contents_Signature System, Version 2.00 or later,
echo Remote Contents_Signature Inquiry option,
if .%3 == .! goto rsc
echo you can quickly find what it has that
echo matches the file(s) in "%1".
goto end
:rsc
echo you can quickly get a short reply as to whether the BBS already has or
echo recognizes much or all of the file(s) in "%1".
goto end
:help1
echo.
echo I also need to have the FILENAME.EXT to use for the output file.
goto try
:help2
echo.
echo The output file must be different from the input file.
goto try
:help3
echo.
echo did not find %1
goto try
:help4
echo.
echo the output file "%2" already exists. First delete it, and then
:try
echo.
echo Please try again...
goto usage
:help5
del FWKCSLOO.KUP > nul
echo.
echo What happened to Phil Katz's PKZIP(R)? I didn't find it.
echo.
echo How am I supposed to do this work?
:end
echo.